Skip to content

saltstack-jinja extension#5269

Closed
perfecto25 wants to merge 1 commit intozed-industries:mainfrom
perfecto25:main
Closed

saltstack-jinja extension#5269
perfecto25 wants to merge 1 commit intozed-industries:mainfrom
perfecto25:main

Conversation

@perfecto25
Copy link
Copy Markdown

extension to parse Saltstack sls files

jinja and YAML support

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Mar 17, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @perfecto25 on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@perfecto25
Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Mar 17, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @perfecto25 on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Mar 17, 2026

The cla-bot has been summoned, and re-checked this pull request!

@perfecto25
Copy link
Copy Markdown
Author

We require contributors to sign our Contributor License Agreement, and we don't have @perfecto25 on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot check

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Mar 17, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @perfecto25 on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Mar 17, 2026

The cla-bot has been summoned, and re-checked this pull request!

@perfecto25
Copy link
Copy Markdown
Author

We require contributors to sign our Contributor License Agreement, and we don't have @perfecto25 on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot check

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed label Mar 17, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Mar 17, 2026

The cla-bot has been summoned, and re-checked this pull request!

@jleroy
Copy link
Copy Markdown

jleroy commented Mar 21, 2026

Hey,

FYI I’ve already submitted a Salt extension 2 weeks ago, see #5136.
Your extension seems to be pretty similar to mine, maybe we should merge them?

@perfecto25
Copy link
Copy Markdown
Author

Hey,

FYI I’ve already submitted a Salt extension 2 weeks ago, see #5136. Your extension seems to be pretty similar to mine, maybe we should merge them?

nice, i didnt see your PR before I added this

I installed your extension, but Im not seeing syntax highlighting for yaml, only jinja

image

we should merge these 2 repos into 1, no point of having 2 extensions for same thing, either I can add your extnesion logic into my repo or vice versa, but the yaml syntax should be there also, ie

image

@jleroy
Copy link
Copy Markdown

jleroy commented Mar 24, 2026

I haven't been able to reproduce the problem on my side:

Capture d’écran 2026-03-24 à 11 12 05

I use Zed built-in YAML Tree-sitter grammar so it should works out of the box. Maybe you have conflicting extensions?

@perfecto25
Copy link
Copy Markdown
Author

I haven't been able to reproduce the problem on my side:
Capture d’écran 2026-03-24 à 11 12 05

I use Zed built-in YAML Tree-sitter grammar so it should works out of the box. Maybe you have conflicting extensions?

let me try clearing all my ext, probably my env is messed up

@perfecto25
Copy link
Copy Markdown
Author

strange, i dont have anything besides these ext

image

yaml syntax not showing

image

im on fedora 43 Linux mrxmac3 6.18.13-200.fc43.x86_64

zed v 0.228.0

@perfecto25
Copy link
Copy Markdown
Author

its def using your ext for parsing

image

@jleroy
Copy link
Copy Markdown

jleroy commented Mar 24, 2026

I figured it out: your theme colors YAML keys (property) using the same color as text (editor.foreground): #abb2bf. See here.

Colors are defined in themes, not in extensions, as each user can define its own colors. But you can overrides your theme by defining experimental.theme_overrides in settings.json:

  "experimental.theme_overrides": {
    "syntax": {
      "property": {
        "color": "#HEX_CODE",
      },
    },
  },

@perfecto25
Copy link
Copy Markdown
Author

I figured it out: your theme colors YAML keys (property) using the same color as text (editor.foreground): #abb2bf. See here.

Colors are defined in themes, not in extensions, as each user can define its own colors. But you can overrides your theme by defining experimental.theme_overrides in settings.json:

  "experimental.theme_overrides": {
    "syntax": {
      "property": {
        "color": "#HEX_CODE",
      },
    },
  },

can confirm its the onedark theme, i removed it and its showing this

image

for some reason YAML color is breaking here

im down to only 4 ext

image

@jleroy
Copy link
Copy Markdown

jleroy commented Mar 25, 2026

Fixed, that was an issue in tree-sitter-jinja.
Just do a git pull and rebuild the extension in Zed.

@perfecto25
Copy link
Copy Markdown
Author

Fixed, that was an issue in tree-sitter-jinja. Just do a git pull and rebuild the extension in Zed.

yeah looks good now, Im gonna close this PR and delete my branch

image

@perfecto25
Copy link
Copy Markdown
Author

this is a duplicate extenstion , closing

@perfecto25 perfecto25 closed this Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants